package cn.tedu.sp09feign.feign;

import cn.tedu.sp01.pojo.Order;
import cn.tedu.sp01.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "order-service", fallback = OrderFeignClientFB.class)
public interface OrderFeignClient {


    @GetMapping("/{orderId}")
    public JsonResult<Order> getOrder(@PathVariable(value = "orderId") String orderId);



    @GetMapping("/")
    public JsonResult<?> addOrder();






}
